package com.chen10.cattle.mapper;

import com.chen10.cattle.model.pojo.CattleLocation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author Administrator
* @description 针对表【cattle_location】的数据库操作Mapper
* @createDate 2025-03-16 20:14:48
* @Entity com.chen10.cattle.model.pojo.CattleLocation
*/
@Mapper
public interface CattleLocationMapper {
    int insert(CattleLocation location);
    List<CattleLocation> selectByCattleId(Long cattleId);
    CattleLocation selectLatestLocation(Long cattleId);
    List<CattleLocation> selectDailyLocations(@Param("cattleId") Long cattleId,
                                              @Param("date") Date date);
}
